var ttp = 0;
function load01(){
	var time = new Date
	a = time.getDate(); b = time.getMonth() + 1;
	
	document.write('<ul>');
	for (var i =0; i< anc.max; i++){	
	if(anc.date.m[i] == b && a - anc.date.d[i] <= 2){
		n = '<img src="http://tvmpanc.googlecode.com/svn/trunk/tv/new.gif"></img>'; h='';
	}else{n = ''; h = '<img src="http://tvmpanc.googlecode.com/svn/trunk/tv/hot.gif"></img>';}		
	document.write('<li><a href="'+anc.url[i]+'" rel="'+anc.title[i]+'" onMouseover="showtip('+ttp+',\'anc_tip\')" onMouseout="hidetip()" >'+anc.title[i].substring(0,25)+'...'+n+h+'</a><div class="anc_tip"><div class="content"><img style="width:282px; height:185px; padding-bottom: 2px;" src="'+anc.img.f[i]+'"/>'+anc.snippet[i]+'</div><div class="tit">'+anc.title[i]+'</div></div></li>');
		ttp = ttp+1;
	}
	document.write('</ul>');
}

function load02(){
	var data = "";	
	for (var i =0; i< anc.max; i++){	
	if(i == 0){data = '<ul class="list_films">'}	
	data += '<li>';
	data += '<span class="process"><span>'+anc.label[i].split(',')[0]+'</span></span>';
	data += '<div class="poster"><p class="img"><a href="' + anc.url[i] + '" rel="' + anc.title[i] + '"><img src="' + anc.img.f[i] + '" width="120px" height="160px" /></a></p><h3 class="name"><a href="' + anc.url[i] + '">' + anc.title[i] + '</a></h3></li>';
	if(3 == i || 7 == i || 11 == i) { data += '<div class="clr"/></ul><ul class="list_films">' ;}
	if(i == 16) {(data = '<ul class="list_films">');}	
		//ttp = ttp+1;	
	}	
	document.write(data);
}

function load03(){
	var data = "";
	for (var i =0; i< anc.max; i++){	
	if(i == 0){data = '<ul class="list_films">'}	
	data += '<li><span class="process"><span>'+anc.label[i].split(',')[0]+'</span></span><div class="poster"><p class="img"><a href="' + anc.url[i] + '" title="' + anc.snippet[i] + '" rel="' + anc.title[i] + '"><img src="' + anc.img.f[i] + '" width="120px" height="160px" /></a></p><h3 class="name"><a href="' + anc.url[i] + '">' + anc.title[i] + "</a></h3></li>";	
	if(3 == i || 7 == i || 11 == i) { data += '</ul><ul class="list_films">' ;}
	if(i == 16) {(data = '<ul class="list_films">');}	
	}
	document.write('<div id="scroller" class="scrollable"><div class="items">'+data+'</div></div>');
	e = '<script>$(document).ready(function() {'
		+'var root = $("#scroller").scrollable({circular: true}).autoscroll({ autoplay: true });'
		+'window.api = root.data("scrollable");});</'+'script>';
	document.write(e);	
}

function load04(){
	for (var i =0; i< anc.max; i++){
		with(document){
			write('<a href="'+anc.url[i]+'">'+anc.title[i]+'</a><br/>');
		}
	}
}
